<meta charset="UTF-8">
<script type="text/javascript">

$(function(){
	$.post('grade/peasonId',function(data){
			$('#mytable').datagrid({
				url:'page2?xsId='+data,
				path:'grade',
				search: false, 
				showColumns:false, 
				showRefresh: false,  
				showToggle: false, 
				buttons:[],
				columns:[
					[
						{title:'课程',field:'course',formatter:function(value,row,index){
			            		return row.course.name;
							}
			           	},
						{title:'成绩',field:'grade',formatter:function(value,row,index){
							   return row.grade;
							}
						},
					]		
				],
			})
		})
})
</script>
<div>
<h3>个人成绩查询<small>Grade</small></h3>
<hr>
<table id="mytable"></table>
</div>